package service.factory;

import service.UserService;
import service.impl.UserServiceImpl;

public class ServiceFactory {
	private static UserService userService;
	
	public static UserService getUserServiceInstance() {
		if (userService==null){
			synchronized (ServiceFactory.class){
				if (userService==null){
					userService = new UserServiceImpl();
				}
			}
		}
		return userService;
	}

}
